package com.yyh.weknow.basics;

public class InitialOrderTest3 {
    // 静态变量
    public static TestA a = new TestA();
    // 静态初始化块
    static {
        System.out.println("静态初始化块");
    }
    // 静态变量
    public static TestB b = new TestB();
    public static void main(String[] args) {
        new InitialOrderTest3();
    }
}
class TestA {
    public TestA() {
        System.out.println("Test--A");
    }
}
class TestB {
    public TestB() {
        System.out.println("Test--B");
    }
}
